﻿// Altimeter - 高度表
#pragma once

#include <graphics.h>
#include <windows.h>
#include <stdio.h>
#include <math.h>

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif

void drawAM(float x, float y, float r, float height);
void drawScaleAndNumbers(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void drawInnerScaleAndNumbers(double current_heading, float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void drawInnerScaleAndNumbers2(double current_heading, float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void innercircle(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void lineN(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void outerCircle(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void drawButton(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void shadowAM(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void  fillpie2(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void  fillpie1(float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
float heightToAngle(float height);
float heightToAngle2(float height);
float heightToAngle3(float height);
void ten_thousand(float height, float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void thousand(float height, float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
void hundred(float height, float  CENTER_X, float CENTER_Y, float DIAL_RADIUS);
double updateheadingAM(double current_heading);
